package com.wdciti.sccp.iot.springvertx.configure;

import io.vertx.core.VertxOptions;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

/**
 * @author by early
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Configuration
@ConfigurationProperties(prefix = "vertx")
public class VertxOptionsConfiguration extends VertxOptions {

    private boolean enable = true;
    private int deployLatchAwaitTime = 5;
    private TimeUnit deployLatchAwaitTimeUnit = TimeUnit.SECONDS;


}
